package yt.demo.appcommontools.utils.files;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "file")
@Data
public class FileStorageProperties {
    private String defaultType;
    private StorageConfig local;
    private StorageConfig aliyun;

    @Data
    public static class StorageConfig {
        private String uploadDir;
        private String domainName;
        private String endpoint;
        private String accessKeyId;
        private String accessKeySecret;
        private String bucketName;

    }

}
